﻿<Page x:Class="Woodlands.ModuleWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      mc:Ignorable="d" 
      d:DesignHeight="550" d:DesignWidth="1360">
    <Grid Name="mainContent">
        <TabControl Height="550" FontSize="14" x:Name="subMenu" VerticalAlignment="Top" BorderBrush="Teal" Background="#FFF5F5CB" Margin="0,0,0,0" d:LayoutOverrides="Margin">
            <TabItem Header="Create" x:Name="create" Background="#FFF5F5CB">
                <Grid x:Name="createGrid" Background="#FFF5F5CB">
                    <Label Content="Create a Module" Height="46" Margin="8,8,0,0" x:Name="Creation" VerticalAlignment="Top" FontWeight="Bold" FontSize="30" HorizontalAlignment="Left" Width="268" />
                    <GroupBox Header="Details" BorderBrush="Teal" HorizontalAlignment="Left" Margin="8,58,0,0" VerticalAlignment="Top" Height="106" Width="392" FontWeight="Bold">
                        <Grid>
                            <Label Content="Module ID:" Height="30" HorizontalAlignment="left" x:Name="createCourseIDLabel" VerticalAlignment="Top" FontWeight="Bold" Foreground="Teal" Width="86" Margin="8,9,0,0" />
                            <TextBox Visibility="Hidden" MaxLength="3" KeyUp="newModuleCodeText_KeyUp_1" KeyDown="newModuleCodeText_KeyDown_1" Height="22" x:Name="newModuleCodeText" VerticalAlignment="Top" HorizontalAlignment="Left" Width="60" Margin="139,12,0,0" />
                            <ComboBox SelectionChanged="moduleCode_SelectionChanged_1"  ItemsSource="{Binding}" DisplayMemberPath="moduleCode" SelectedValuePath="moduleCode" x:Name="moduleCode" Height="22" HorizontalAlignment="Left" SelectedIndex="0" Margin="139,12,0,0" VerticalAlignment="Top" Width="60"/>
                            <TextBox Height="22" IsEnabled="False" x:Name="createModuleIDTxt" VerticalAlignment="Top" HorizontalAlignment="Left" Width="143" Margin="204,12,0,0" />
                            <Label Content="Module Name:" Height="30" HorizontalAlignment="Left" VerticalAlignment="Top" x:Name="createCourseNameLbl" Width="103" Margin="8,43,0,0" FontSize="14" FontWeight="Normal" />
                            <TextBox Height="22" x:Name="createCourseNameTxT" VerticalAlignment="Top" HorizontalAlignment="Left" Width="208" Margin="139,48,0,0" />  
                        </Grid>
                    </GroupBox>
                    <GroupBox Header="Level" BorderBrush="Teal" HorizontalAlignment="Left" Margin="471,58,0,0" VerticalAlignment="Top" Height="106" Width="319" FontWeight="Bold">
                        <Grid>
                            <Label Content="Level:" Height="30" HorizontalAlignment="left" x:Name="createCourseIDLabel1" VerticalAlignment="Top" Width="86" Margin="8,9,0,0" FontWeight="Normal" />
                            <ComboBox x:Name="createModuleLevel" SelectedIndex="0" Height="22" HorizontalAlignment="Left" Margin="65,12,0,0" VerticalAlignment="Top" Width="60">
                                <ComboBoxItem Content="1" />
                                <ComboBoxItem Content="2" />
                                <ComboBoxItem Content="3" />
                            </ComboBox>
                            <Label Content="Points:" Height="30" HorizontalAlignment="left" x:Name="createCourseIDLabel1_Copy" VerticalAlignment="Top" Width="86" Margin="142,9,0,0" FontWeight="Normal" />
                            <TextBox x:Name="createModulePoints" HorizontalAlignment="Left" Margin="211,12,0,0" Height="22" VerticalAlignment="Top" Width="61"/>

                        </Grid>
                    </GroupBox>
                    <GroupBox Header="Assessments" BorderBrush="Teal" HorizontalAlignment="Left" Margin="863,58,0,0" VerticalAlignment="Top" Height="106" Width="319" FontWeight="Bold">
                        <Grid>
                            <Label Content="1:" Height="30" HorizontalAlignment="left" x:Name="createCourseIDLabel2" VerticalAlignment="Top" Width="86" Margin="8,9,0,0" FontWeight="Normal" />
                            <Label Content="2:" Height="30" HorizontalAlignment="left" x:Name="createCourseIDLabel1_Copy1" VerticalAlignment="Top" Width="86" Margin="142,9,0,0" FontWeight="Normal" />
                            <TextBox x:Name="createModuleAss1" HorizontalAlignment="Left" Margin="33,12,0,0" Height="22" VerticalAlignment="Top" Width="61"/>
                            <TextBox x:Name="createModuleAss2" HorizontalAlignment="Left" Margin="167,12,0,0" Height="22" VerticalAlignment="Top" Width="61"/>
                            <Label HorizontalAlignment="Left" VerticalAlignment="Top" Margin="8,39,0,-25" Height="66" MaxWidth="262" Width="298">
                                <TextBlock FontSize="10" Text="i. Assessment weighting as a percentage, must total 100%" FontWeight="Normal" TextWrapping="Wrap" Width="288" />
                            </Label>

                        </Grid>
                    </GroupBox>
                    <Button Content="Cancel" Height="35" Margin="968,170,0,0" x:Name="cancel" VerticalAlignment="Top" RenderTransformOrigin="0.495,0.557" HorizontalAlignment="Left" Width="99" d:LayoutOverrides="VerticalAlignment" Click="cancel_Click" />
                    <Button Foreground="White" Background="Teal" Content="Save" Height="35" x:Name="save" VerticalAlignment="Top" Margin="863,169,0,0" HorizontalAlignment="Left" Width="100" d:LayoutOverrides="VerticalAlignment" Click="save_Click" />

                </Grid>
            </TabItem>
            <TabItem Header="Amend" x:Name="amend" Background="#FFF5F5CB">
                <Grid x:Name="amendGrid" Background="#FFF5F5CB">
                    <Label Content="Amend a Module" Height="46" Margin="8,8,0,0" x:Name="Creation_Copy" VerticalAlignment="Top" FontWeight="Bold" FontSize="30" HorizontalAlignment="Left" Width="268" />
                    <GroupBox Header="Details" BorderBrush="Teal" HorizontalAlignment="Left" Margin="8,58,0,0" VerticalAlignment="Top" Height="106" Width="392" FontWeight="Bold">
                        <Grid>
                            <Label Content="Module ID:" Height="30" HorizontalAlignment="left" x:Name="createCourseIDLabel3" VerticalAlignment="Top" FontWeight="Bold" Foreground="Teal" Width="86" Margin="8,9,0,0" />
                            <ComboBox SelectionChanged="moduleCodeAmend_SelectionChanged_1"  ItemsSource="{Binding}" DisplayMemberPath="moduleCode" SelectedValuePath="moduleCode" x:Name="moduleCodeAmend" Height="22" HorizontalAlignment="Left" SelectedIndex="0" Margin="139,12,0,0" VerticalAlignment="Top" Width="60"/>
                            <TextBox KeyUp="amendModuleIdTxt_KeyUp_1" Height="22" x:Name="amendModuleIdTxt" VerticalAlignment="Top" HorizontalAlignment="Left" Width="143" Margin="204,12,0,0" />
                            <Label Content="Module Name:" Height="30" HorizontalAlignment="Left" VerticalAlignment="Top" x:Name="createCourseNameLbl1" Width="103" Margin="8,43,0,0" FontSize="14" FontWeight="Normal" />
                            <TextBox IsEnabled="False" Height="22" x:Name="createCourseNameTxT1" VerticalAlignment="Top" HorizontalAlignment="Left" Width="208" Margin="139,48,0,0" />
                        </Grid>
                    </GroupBox>
                    <GroupBox Header="Level" BorderBrush="Teal" HorizontalAlignment="Left" Margin="471,58,0,0" VerticalAlignment="Top" Height="106" Width="319" FontWeight="Bold">
                        <Grid>
                            <Label Content="Level:" Height="30" HorizontalAlignment="left" x:Name="createCourseIDLabel4" VerticalAlignment="Top" Width="86" Margin="8,9,0,0" FontWeight="Normal" />
                            <ComboBox Height="22" x:Name="amendModuleLevel" IsEnabled="False" HorizontalAlignment="Left" Margin="65,12,0,0" VerticalAlignment="Top" Width="60">
                                <ComboBoxItem Content="1" />
                                <ComboBoxItem Content="2" />
                                <ComboBoxItem Content="3" />
                            </ComboBox>
                            <Label Content="Points:" Height="30" HorizontalAlignment="left" x:Name="createCourseIDLabel1_Copy2" VerticalAlignment="Top" Width="86" Margin="142,9,0,0" FontWeight="Normal" />
                            <TextBox x:Name="amendModulePoints" IsEnabled="False" HorizontalAlignment="Left" Margin="211,12,0,0" Height="22" VerticalAlignment="Top" Width="61"/>

                        </Grid>
                    </GroupBox>
                    <GroupBox Header="Assessments" BorderBrush="Teal" HorizontalAlignment="Left" Margin="863,58,0,0" VerticalAlignment="Top" Height="106" Width="319" FontWeight="Bold">
                        <Grid>
                            <Label Content="1:" Height="30" HorizontalAlignment="left" x:Name="createCourseIDLabel5" VerticalAlignment="Top" Width="86" Margin="8,9,0,0" FontWeight="Normal" />
                            <Label Content="2:" Height="30" HorizontalAlignment="left" x:Name="createCourseIDLabel1_Copy3" VerticalAlignment="Top" Width="86" Margin="142,9,0,0" FontWeight="Normal" />
                            <TextBox x:Name="amendAss1" IsEnabled="False" HorizontalAlignment="Left" Margin="33,12,0,0" Height="22" VerticalAlignment="Top" Width="61"/>
                            <TextBox x:Name="amendAss2" IsEnabled="False" HorizontalAlignment="Left" Margin="167,12,0,0" Height="22" VerticalAlignment="Top" Width="61"/>
                            <Label HorizontalAlignment="Left" VerticalAlignment="Top" Margin="8,39,0,-25" Height="66" MaxWidth="262" Width="298">
                                <TextBlock FontSize="10" Text="i. Assessment weighting as a percentage, must total 100%" FontWeight="Normal" TextWrapping="Wrap" Width="288" />
                            </Label>

                        </Grid>
                    </GroupBox>
                    <Button Content="Cancel" Height="35" Margin="968,170,0,0" x:Name="cancel_Copy" VerticalAlignment="Top" RenderTransformOrigin="0.495,0.557" HorizontalAlignment="Left" Width="99" d:LayoutOverrides="VerticalAlignment" Click="cancel_Copy_Click" />
                    <Button Foreground="White" Background="Teal" Content="Save" Height="35" x:Name="save_Copy" VerticalAlignment="Top" Margin="863,169,0,0" HorizontalAlignment="Left" Width="100" d:LayoutOverrides="VerticalAlignment" Click="save_Copy_Click" />

                </Grid>
            </TabItem>
            <TabItem Header="Archive" x:Name="archive" Background="#FFF5F5CB">
                <Grid x:Name="archiveGrid" Background="#FFF5F5CB">
                    <Label Content="Archive a Module" Height="46" Margin="8,8,0,0" x:Name="Creation_Copy1" VerticalAlignment="Top" FontWeight="Bold" FontSize="30" HorizontalAlignment="Left" Width="268" />
                    <GroupBox Header="Details" BorderBrush="Teal" HorizontalAlignment="Left" Margin="8,58,0,0" VerticalAlignment="Top" Height="125" Width="392" FontWeight="Bold">
                        <Grid>
                            <ComboBox SelectionChanged="moduleCodeArchive_SelectionChanged_1" ItemsSource="{Binding}" DisplayMemberPath="moduleCode" SelectedValuePath="moduleCode" x:Name="moduleCodeArchive" Height="22" HorizontalAlignment="Left" SelectedIndex="0" Margin="139,12,0,0" VerticalAlignment="Top" Width="60"/>
                            <Label Content="Module ID:" Height="30" HorizontalAlignment="left" x:Name="createCourseIDLabel6" VerticalAlignment="Top" FontWeight="Bold" Foreground="Teal" Width="86" Margin="8,9,0,0" />
                            <TextBox KeyUp="createCourseIDTxt2_KeyUp_1" Height="22" x:Name="createCourseIDTxt2" VerticalAlignment="Top" HorizontalAlignment="Left" Width="143" Margin="204,12,0,0" />
                            <Label Content="Module Name:" Height="30" HorizontalAlignment="Left" VerticalAlignment="Top" x:Name="createCourseNameLbl2" Width="103" Margin="8,43,0,0" FontSize="14" FontWeight="Normal" />
                            <TextBox IsEnabled="False" Height="22" x:Name="createCourseNameTxT2" VerticalAlignment="Top" HorizontalAlignment="Left" Width="208" Margin="139,48,0,0" />
                        </Grid>
                    </GroupBox>
                    <GroupBox Header="Status" HorizontalAlignment="Left" Margin="450,58,0,0" VerticalAlignment="Top" Height="125" Width="370" BorderBrush="Teal">
                        <Grid>
                            <Label Content="Current Status:" Height="30" HorizontalAlignment="left" x:Name="studentIDLabel1_Copy1" VerticalAlignment="Top" FontWeight="Bold" Foreground="Teal" Width="120" Margin="8,9,0,0" />
                            <TextBox HorizontalAlignment="Left" Margin="132,14,0,0" x:Name="currentStatusTxtArchive" TextWrapping="Wrap" IsEnabled="False" VerticalAlignment="Top" Width="207"/>
                            <Button Height="35" Width="100" Content="Archive"  x:Name="BtnArchive" HorizontalAlignment="Left" Margin="132,48,0,0" VerticalAlignment="Top" Background="Teal" Foreground="White" Click="BtnArchive_Click" />
                            <Button Height="35" Width="100" Content="Cancel"  x:Name="CancelBtnArchive" HorizontalAlignment="Left" Margin="239,48,0,0" VerticalAlignment="Top" Click="CancelBtnArchive_Click" />
                        </Grid>
                    </GroupBox>

                </Grid>
            </TabItem>
            <TabItem Header="Search" x:Name="search" Background="#FFF5F5CB">
                <Grid x:Name="searchGrid" Background="#FFF5F5CB">
                    <Label Content="Search Modules" Height="46" HorizontalAlignment="Left" Margin="8,8,0,0" VerticalAlignment="Top" FontWeight="Bold" FontSize="30" Width="268" />
                    <GroupBox FontWeight="Bold" Header="Details" HorizontalAlignment="Left" Margin="8,58,0,0" VerticalAlignment="Top" Height="76" Width="513" BorderBrush="Teal">
                        <Grid>
                            <ComboBox SelectionChanged="searchType_SelectionChanged_1" x:Name="searchType" HorizontalAlignment="Left" Height="25" SelectedIndex="0" Margin="90,11,0,0" VerticalAlignment="Top" Width="120">
                                <ComboBoxItem Content="Module ID" />
                                <ComboBoxItem Content="Module Name" />
                            </ComboBox>
                            <ComboBox SelectionChanged="moduleCodeSearch_SelectionChanged_1" ItemsSource="{Binding}" DisplayMemberPath="moduleCode" SelectedValuePath="moduleCode" x:Name="moduleCodeSearch" Height="25" HorizontalAlignment="Left" SelectedIndex="0" Margin="215,11,0,0" VerticalAlignment="Top" Width="60"/>
                            <TextBox KeyUp="moduleSearch_KeyUp_1" Height="25" x:Name="moduleSearch" VerticalAlignment="Top" HorizontalAlignment="Left" Width="208" Margin="280,11,0,0" />
                            <Label Content="Search By" Height="28" HorizontalAlignment="left" x:Name="studentIDLabel_Copy" VerticalAlignment="Top" FontWeight="Bold" Foreground="Teal" Width="86" Margin="8,9,0,0" />
                        </Grid>
                    </GroupBox>
                    <ListBox SelectionChanged="moduleCodeSearch_SelectionChanged_1"  Height="416" Margin="0,8,8,0"  VerticalAlignment="Top" x:Name="resultsBox" HorizontalAlignment="Right" Width="739" />

                </Grid>
            </TabItem>
        </TabControl>
    </Grid>
</Page>
